FROM openjdk:8-jre-alpine

WORKDIR /app

ARG JAR_FILE=target/pandora-graph.jar
ARG TIME_ZONE=Asia/Shanghai

ENV TZ=${TIME_ZONE}
ENV JAVA_OPTS="-Xms128m -Xmx512m"

COPY ${JAR_FILE} pandora-graph.jar
EXPOSE 9977
ENTRYPOINT java ${JAVA_OPTS} -jar pandora-graph.jar